Or, you can do what Wilder Penfield did, and map things out in real time by talking to the patient and asking them what they feel as you stimulate some part of their brain (plus various other methods, as seen in The Far Side).