I need to figure out if user is on Windows XP, and which service pack.

I use Get System Information(Service Pack Number) to get the service pack number, but I'm unsure what to use to tell if user is on a Window XP OS ?