Even if the mass of the hammers was the same, the wooden one would be more dense and less elastic which means it would absorb less energy when it hits something and therefore exert more force on the object it hits.
p.s. I have no knowledge of physics beyond gcse , I felt obliged to answer you're question because we have the same avatar : )
I think what i said is along the right lines though.