If you're talking the actual subwoofer driver itself, yes you could. To swap the whole subwoofer unit itself, not really, as it has the amplifier and connections for the whole system.
You can open the sub and hopefully get specs of a label on the magnet, but basically you're just concerned with size in inches, impedence (ohm rating), and peak wattage capability. There is the possibilty tho that it's not the actual speaker, but the amp portion that drives it that has failed on your unit.