either cut the nut off the stud, or cut the nut and the end of the stud off, then slide the drum back off and replace the stud
Edit: just re-read and realised you have a wheel in the way .
If the car is drivable then it might be worth popping to a local garage and seeing if they can try one of their impact guns on it. It might spin the nut fast enough to undo it