Flash Pro CS6.
layer.animationType
Read-only property; a string value indicating the animation type of the layer. Possible values include: "none", "motion object", "IK pose".
The following example returns the layer type of the first layer of the root timeline:
var layer = fl.getDocumentDOM().getTimeline().layers[0];
fl.trace("animationType: " + layer.animationType);