How do you find out the position of your baby?

Em

I'm 31 weeks and the doctor told me baby can still flip back and forth at this point. When did you all find out the positioning of your baby, and how?