I think what the OP was really asking is how can you tell, without having to stuff other carrier SIMs into the iPhone to determine if it's unlocked.
It would be nice is there was something in the settings that simply said if the iPhone is locked to a carrier or not.