Use recovery mode, power it down, plug it into a PC with iTunes installed. Hold in the home button and the power button at the same time, count to 10, release the power button, count to 10, release the home button. You should see a message about iPad being in recovery mode and iTunes should download and install a new iOS version to the device, wiping it in the process.