Gender blood test

How early can you get a blood test to find out the gender of your baby ?