What is gender blood test called?

What is gender revealing blood test called and how soon can I get it? the one at the doctors office and what's it called?