Just a basic example how to get a value from the registry using a VB script, here I am finding where Lotus Notes is installed.
Set objShell = CreateObject("WScript.Shell")
regKey = "HKLM\SOFTWARE\Lotus\Notes\"
regValue = "Path"
regResult = objShell.RegRead(regKey & regValue)
wscript.echo regResult