Use this query to determine if an object is part of an instance definition.
Class: Rhino.DocObjects.ObjectAttributes