The NIPT test or non-invasive prenatal test can detect the gender of the baby. Since the chromosomes undergo testing, the gender also can be identified.