There is a directory of gaming contact information and the like
here. You'll also find a field for it when you edit your profile and it will show up in others' profiles if they have a friend code set.
If you want to play a specific game with someone on 3DS, you can make a thread for it in the Online Gaming subforum. Otherwise, we already have a directory that encompasses FCs so I'm going to close this.