A. xp_msver will return most of the information you need.