How is it possible to read/write to the Windows registry using Java?
You can execute these "REG QUERY" command using java code.
Try to execute this from command prompt and execute command from java code.
HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows NT\CurrentVersion"
To Search details like productname version etc.. use /v amd "name".
HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName"