Baby's gender

Renee
I'm dying to find out my bubs gender. 
How far along where you when you found out the sex of your baby through ultrasound??I'll be 17 weeks when I see my OB next, will I be able to ask for and ultra sound referral from 17 weeks??