Use the ICICertInfo interface NotAfter property to retrieve the certificate's expiration date. Refer to Certificate Information Interface Parameters for an illustration of how this and other Certificate Information Interface Properties can be accessed in the Administrator interface.
Signature:
HRESULT NotAfter([out, retval] BSTR *pVal);