The IResponse::get_ContentType method retrieves the current value of the ContentType property of the Response object.
HRESULT get_ContentType(
BSTR * pbstrContentTypeRet //pointer to a binary string that
// receives the ContentType value
);
You can use the ConentTypeRet value to determine the content type of the current Response object.