Can a woman make a brocha while wearing pants at home?
Yes. However, if she can easily put on a skirt, which is a more respectable way to recite a beracha than wearing pants, then it is better to do so. This is especially true regarding Birkas Hamazon.
All the best
See Shulchan Aruch O:C 74:6, Mishna Berura ibid:22, and Bi’ur Halacha 91:1 ד”ה יצא.
Birkas Hamazon is more stringent- Rav Shlomo Zalman Auerbach, as brought in Vzos Haberacha page 10.