Free energy calculations

Dear Lammps users:
After a lot of search in the list I still do not get a clear answer how to calculate the free energy of a solid. What I want to study is the temperatrue depedent free energy difference between two metals described by EAM potential. Is there a method to calculate this directly or some examples? Any advice is apprecited. Thank you!