How about the dinosaur approach?

Pull up an MSDOS prompt,

debug <return>
d40:0 <return>
q <return>

That dumps the memory where the port addresses are kept and exits debug.

The first half of the top line is the serial ports, the second half is the parallel ports.
Low byte first so BC 07 would be 07BCh

exit <return> Gets you out of it.