Sonographer will ask you first if you want to know your baby's gender or not. If you say yes, she will tell you. If not, will not tell you. You will also get a result paper of the scan which also indicates the baby's gender (if you said yes earlier).