To find your Friend Code, you first have to go downstairs in any Pokemon Center and get the Pal Pad. Then when you open it, there should be an option to check your own FC. Click it, it'll connect to the WiFi and retrieve it for you. =]
First, you have to establish a connection to the WFC, though. Do you know how to do that?