Nintendo is obviously aware of flash cards. Trying to make sure nobody would be able to create pirate copied stuff would be one of their top priorities before releasing the system.
The only thing is, i don't think nintendo can even track whether you're using a flash card or not. A rom still generates a friend code and all. You still play online. I doubt theres a way for nintendo to find out whether your using a flash card or not.