Is it permissible to check baby’s gender during pregnancy?

Yes, provided that there is no intention to abort him in case you do not like the gender.