SIM card communication protocol
Smart cards come in several flavours, each with their own protocols. Here's some Arduino code to read ISO7816 T=0 cards:

http://www.makomk.com/~aidan/iso7816_interface.pde

Here's an overview of the standard:

http://www.smartcardsupply.com/Content/Cards/7816standard.htm