When do they check for stds and which ones

I know they do but when do they do that in pregnancy?? And which ones do they check for.