What is the earliest you can find out gender ?

So I’m pregnant for the first time I’m currently 9w 4 days what is the earliest can I find out what I’m having ?