I am trying to find information that I have run against my machine. However I can not figure out a way without, hard coding certain information into HKLM, to do it.

For example I want to read subkey under:

HKEY_LOCAL_MACHINE\Software\TEST\LocalApp\

Win10 enterprise environment