The OP might be remembering this (link) style of message from the Windows XP days. I don't think I've seen it for windows 7/10/11, sadly.

It will warn you if you're charging over the slower to charge port, though.

https://superuser.com/questions/1022542/windows-10-display-a...