QuantityQ
QuantityQ[expr] gives True if expr is a Quantity with valid arguments, and False otherwise.
QuantityQ[expr,dims] gives True if expr is a Quantity with physical dimensions dims, and False otherwise.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.