The student pilot was conducting the second landing of his first solo flight. After touchdown, the pilot was preparing to perform a touch and go when the airplane began to veer off the runway. The pilot attempted to correct; however, the airplane exited the runway surface, entered a ditch, nosed over, and came to rest inverted. The airplane sustained substantial damage to the airframe firewall. The student pilot reported no mechanical problems with the airplane prior to the accident.