'Get regedit server object
Set S = CreateObject("RegEdit.Server")
'Connect to the remote registry
S.Connect "ComputerName", rkClassesRoot
For Each Key In S.Keys
Wscript.Echo Key.Name
Next
Other links for Enumerate classes on remote computer
Server/computer for the ActiveX regedit. You can use GetKey method to get a specified key from the server. Keys property returns a collection containing subkeys of a connected key (See Connect method).
Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.