You can look at the metabase properties of SSLCertHash, SSLStoreName, for IIS 7 it is SSLBinding.
For certificate store, you could probably use the Store Object http://msdn.microsoft.com/en-us/library/aa388120(VS.85).aspx
Zhao Ji Ma
Sincerely,
Microsoft Online Community Support
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”