By "fetal echo," a kind of ultrasound done during pregnancy between 18-20 weeks. Specialists can always detect a congenital heart defect before birth.