"How" is used to ask someone if they are well and happy. "What" is used to ask something about people or things. Fine means good.