https://www.sageadvice.eu/counterspell-dispel-magic-i-know-or-i-dont-know-the-spells-level-of-the-opponent-spellcaster/
Counterspell & Dispel Magic : I know or I don't know the spell's level of the opponent spellcaster?