I sure can help you. It is a civil engineering question.
Firstly, using 500 kg hammer dropped from a whoping 4m on a measly 40kg pile will really put too much undue stress on you pile.
Secon you need to consider the efficiency of the hammer. The initial momentum does not equal the final...