Is it possible to dynamically output the name of the widgets?

Is it possible to dynamically output the name of the widgets?