UnitDimensions
UnitDimensions[unit] returns a list of base dimensions associated with the specified unit.
UnitDimensions[quantity] returns a list of base dimensions associated with the unit of the specified quantity.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.