Use the values under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion. I suppose you know where to find this hive ?! The corresponding hive can be found in %SystemRoot%\System32\configthe named SOFTWARE.
. , (, kernel32.dll, ntdll.dll) (, , : , , GetFileVersionInfo()).
, , HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions. . .