I'm not quite sure why you want to get the MainWindow info in a way similar to packInfo; however, I ran a simple search of perlmonks and found a way that might help you. Take a look at zentara's Re^3: Toplevel Window References in Perl Tk.
As for getting the MainWindow configuration, look at the script here.