A bit over-the-top, but this works:
Code:
$i = 0
While Execute('$$Key=EnumKey("HKEY_CURRENT_USER\Software\",$$i) Exit Not @@ERROR')
"Name found: "+$Key ?
$i=$i+1
Loop