Back it up in iTunes then put it in DFU mode and restore in iTunes, that will restore you to the latest firmware but this won't matter if your getting it replaced anyway.
Just bare in mind the replacement iPad will probably be on a IOS version of firmware that can't be broken