You can tell if an anvil is damaged by looking at the "Use" bar at the bottom of the screen. If the bar is red, the anvil is damaged and will need to be repaired.