Enable stats for nerds on your youtube app on your phone from which you are going to cast to the tv. Then cast any 4k video to the chromecast. Select the 3dots and select stats for nerds again. The tv will now show the current and optimal resolution of the video.
If you have a uhd Netflix sub, you can use the video testing patterns to achieve the same.
Curious if Netflix app on Android TV shows the nerd stats. If so how