First, you can try to determine type of the control; then cast your object to this type. Accessing properties of element is possible with this method.
For example, if your object is a "div" contains an "onclick" method, you must convert your com object to mshtml.HTMLDivElement
(You must add assembly "mshtml.dll" into your project for using mshtml class); then you can look for "onclick" attribute in outerHTML
property.
if (doc.GetElementById("id-of-div").GetAttribute("onclick").Equals("System.__ComObject"))
{
mshtml.HTMLDivElement docCOM = (mshtml.HTMLDivElement)doc.GetElementById("id-of-div").DomElement;
string onClickStr = docCOM.outerHTML.[some string or regex operations here];
}