The Battle Master fighter has the 7th-level feature Know Your Enemy (PHB, p. 73):
Starting at 7th level, if you spend at least 1 minute observing or interacting with another creature outside combat, you can learn certain information about its capabilities compared to your own. The DM tells you if the creature is your equal, superior, or inferior in regard to two of the following characteristics of your choice:
- Strength score
- Dexterity score
- Constitution score
- Armor Class
- Current hit points
- Total class levels, if any
- Fighter class levels, if any
Say a creature is under the influence of a spell or ability that changes its appearance or shape, such as the Disguise Self or Polymorph spells or even a dragon's Change Shape action.
Would the Know Your Enemy feature reveal the true stats of the creature or something else?