Tell us what the electromagnet did and then we can calculate the work done. Perhaps you really want to know what is the maximum amount of work the magnet can do in a given period of time ? The magnetic field intensity [in Gauss] would be the parameter that would yield this answer I think.