How to range through pages and list the template for that page

As far as I know, it’s not currently possible.

There was a debug bar developed by @JugglerX where the template being used was hardcoded Prototyping a Hugo debug bar

(@JugglerX correct me if I’m wrong on how that works)