How does doc determine it?

So if you get a blood test how does the doctor determine if you have hsv1 or hsv2?