How can we predict the sex of the baby?

See Below. Unless you have an amniocentesis, or a prenatal ultrasound, you cannot.
You can't. Unfortunately, there is no reliable way to predict. Even the ultrasound can be wrong occasionally.