Disconnect the battery for 15 minutes, it will reset your computer. It may not come back on, being a condition you experience only when towing.
To find out what the trouble code is, you can turn the key from off to run 3 times, leaving it on and counting the flashes of the check engine light. There will be a slight pause between each digit in a 2-digit set, and a longer pause between each 2 digit set. Last check code will be 55, that means all codes are finished.