PuTTY stores session information in the registry: reg query "HKCU\Software\SimonTatham\PuTTY\Sessions"