Thermodynamics and structural properties of a confined HP protein determined by Wang-Landau simulation