Question about retrieving all properties and classes

When I use HTTP requests to retrieve the properties, classes, etc from Roblox, I notice that classes such as Part should have properties that come from BasePart. The problem is I have yet to find a solution to detect if a class has properties that derive from a base class.

Another example is how UI elements are classified sometimes as GuiBase or something.