If he were her friend, he would know what her name is/was . The context makes the choice of tense nearly irrelevant. You can use either 'is' or 'was' without changing the meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.