Blood test for gender

TOSHA to the twin Community so I have no idea how this goes. My dr said the blood test would only pick up the Y chromosome. So if at least one twin is a girl, the blood test can tell this accurate? How does this blood test really work? I would think it could tell either X or Y...and on both me