How to make a widget that shows currently loaded levels

I want to add a text that shows currently loaded levels.