Melt butter in a cast iron skillet over medium heat. Add ham; cook until browned, about 3 minutes per side. Remove ham from skillet, reserving fat. Pour coffee into the pan, scraping the browned bits from the bottom of the pan with a wooden spoon. Bring to a boil. Serve gravy over the ham.