How to print a list of enumerated items in Python
To answer your question, you can print a list like this:

print(bpy.types.Constraint.bl_rna.properties["type"].enum_items.keys())


But in this case I'd suggest to use Blenders documentation.

Note that this is Blender specific, Python doesn't provide a way to list possible valid values for an attribute.