that's what I mean
They're not exactly gonna be good parents to him if they wanted to abort him because he wasn't a girl (or vice versa)
Yes, you can find out the gender of the embryo in the first trimester if you do
Chorionic Villus Sampling, but that test has some risks. You can have an amniocentesis as early as 15 - 16 weeks, which is a test where they stick a giant needle into the mother's uterus to draw out some amniotic fluid and find out the baby's chromosomes from that. That test also has risks, but less than CVS.
People usually don't find out the sex of the baby until they can see the baby's genitals with an ultrasound, at 18 - 20 weeks.
The parents in this story wouldn't have gotten pregnant with sons in the first place if Australia would have let them implant only female zygotes in their IVF procedure like they do in the US, though.