for hairSystem in pm.ls(type="hairSystem"):
for ikHandle in hairSystem.future(type="ikHandle"):
for joint in ikHandle.inputs(type="joint"):
for mesh in joint.future(type='mesh'):
print "%s is affected by dynamic system %s" % (mesh, hairSystem)