If you are asking because this is an item on a test or because you are writing something of an academic nature, you must say, "Yes, it is he." If you are asking because you want to know which to say in casual conversation, you should say, "It's him.
Technically, "Yes, it's him" is not correct.