Before 2011, you can use iProperties to check. Something needed to be aware: there are 6 Property Sets for Standard or Custom: 1~4 are the property sets of a common part. 5th is [Content Library Component Properties], 6th is [ContentCenter]. The [Content Library Component Properties] (B9600981-DEE8-4547-8D7C-E525B3A1727A) can be always found in all CC parts. However, it’s Component_type property is not used by CC anymore and is also not set in current version. However it might work for older components coming from older releases. So to distinguish, you need to use the 6th [ContentCenter]. If it is a Custom part, there is only one property within this property set. The name is “IsCustomPart”. While if it is a Standard CC part, there are some properties to indicate the information of the CC such as family, member etc..
From Inventor 2011, API provided a direct flag to indicate if the part is Standard or Custom:
PartComponentDefinition.IsContentMember