win32api.RegEnumKey

string = RegEnumKey(key, index )

Enumerates subkeys of the specified open registry key. The function retrieves the name of one subkey each time it is called.

Parameters

key : PyHKEY/int

An already open key, or any one of the following win32con constants:
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS

index : int

The index of the key to retrieve.

Win32 API References

Search for RegEnumKey at msdn, google or google groups.