Your only chance is if you managed to login via SSH before it reboots. I think the automatic wifi connection is normally started once the desktop is up and running, so the time window may be very small (or even negative, meaning no chance). When does it exactly reboot? do you get to see the desktop? does it connect? are you able to start a program (click an icon) before it reboots?