Thanks to AppleGuy Tom for providing these codes which work on most US AT&T phones and have been tested on the iPhone. Simply type these codes as if you are calling them.
*3001#12345#* -Displays the Field Test Mode, network, cell, GPRS, call, and version information.
This picture shows the information from one of my cell [...]