smear doesn't detect any stds. It looks for abnormal cells on the cervix, that's it.
Sometimes, the person in the lab can see cell changes that are associated with HPV, maybe even herpes, but without other testing, you really aren't testing at all for stds with just a pap