Pregnacy blood test

How do you get a blood test for pregnancy at the hospital