how to get all metadata values from a subtype.

How to get all metadata values froma given subtype and metadata name?