Ended up using the sm_info.exe and retrieve the input from the generated text file. Thanks to all those who helped.