Possible duplicate:How to get the current version of Windows Phone?
How to get the installed OS version number on Windows Phone 7?
You can use:
Environment.OSVersion.Version
System.Environment.OSVersion should do the trick: http://msdn.microsoft.com/en-us/library/system.environment.osversion.aspx