Formal:
* Je suis heureux/heureuse d'apprendre cela. (I am happy to learn that.)
* C'est avec plaisir que j'apprends cela. (I am pleased to learn that.)
Informal:
* Je suis content/contente de l'apprendre. (I'm happy to hear that.)
* C'est super ! (That's great!)
* Génial ! (Awesome!)
* Cool ! (Cool!)
More specific:
* Je suis ravi/ravie de l'apprendre. (I am delighted to hear that.)
* J'en suis très heureux/heureuse. (I'm very happy about that.)
The best way to choose the right phrase depends on the situation and your relationship with the person you are talking to.