For the actual test, if you've got a 'big' Linux system handy (or are lucky enough to have man pages on your Z) I'd check the man pages for swapon & swapoff. There might be something like swapon -l to list swap areas, if not... I'd hack something using the output of the free command to check whether swap is active or not, although that doesn't seem like a wonderful solution.
I expect there's some way to hook into the hotplug (or whatever) system to swapon when your card's inserted, or you can look at the crontab man page to find out how to do it that way. The cron way may be a little more reliable, but you'll have to write a script to perform that check & if you don't already know how to do that it'll take some effort to learn. I can give you a pointer or two if you like, should save you some time.
For ejecting, if you're lucky the actual eject command the GUI uses will be configurable and you can insert your own script to swapoff before unmounting / ejecting. If not, you'll have to run your swapoff+eject script from a terminal instead of using the GUIs eject button.
One thing, swap on your SD card will wear out the card, they (& other flash memory devces) are only good for so many write operations but you knew that right?