How far along were you when you found out gender from ultrasound?

I’m currently 13w4d and I’ve only had one ultrasound so far, my next one is tomorrow. How many weeks will I find out gender? Do they only do blood work to find out this early?