HttpCfg.exe or Netsh.exe tool can be used to show ports and thumbprints of all bindings on the computer. Using a redirection character ">", as shown in the following example, this can be printed to disk:
httpcfg query ssl>myMachinePorts.txt
On Windows Server 2003 or XP use HttpCfg.exe use delete and ssl keywords. Use the -i switch to specify the IP:port number, and the -h switch to specify the thumbprint.