Ah, you want the contents of the Floquet Port Modes Setup panel. You are fresh out of luck in that case! Outside of the floquet port setup dialog window, the modes are just called 1, 2, 3 etc. No way to see what modes 1, 2, 3... actually are. If you're really dedicated, you could measure each mode using the fields calculator commands, though I shudder to think how difficult that would be.
I can offer you a hack instead. When all else fails, you can read the .aedt file directly with Python. You can get the path to the project file using the oProject module. Then you can load the file text of the open project, which is mixed binary/ASCII:
with open(projectfile,'rb') as stream:
txt = stream.read Then you can search for the boundary setup block for your floquet port, which looks like this (notice that my text editor has replaced tabs with spaces, the real file uses the tab character):
I didn't highlight it, but TM and TE are also there in the 'PolarizationState' property. There you go. All you have to do is search for the opening and closing tags, and then read out M and N:
i = txt.find('$begin \'BoundarySetup\'')
j = txt.find('$end \'BoundarySetup\'', i)
port_start_line = txt.find('$begin \'FloquetPort1\'', i, j)
And so forth. In no time you'll have the M and N indices, and the PolarizationState. Of course, this doesn't work if your project is encrypted.