Why don't you use the HKCU key when people log on?
But you can use the Kix function SidToName() to translate.