@Swapnil,
This is a difficult thing to do.
The easiest way to turn mechanical energy into electrical energy is by moving a magnet through an electric field, which doesn't work so well when the displacement (i.e. the distance that the wooden block moves while it is vibrating) is so small.
You may be looking for is a piezoelectric material. Piezoelectric refers to converting stress into electricity. You can buy piezoelectric disks, however they are very inefficient. The amount of electrical energy you will get from them is very small. They are generally used for detecting pressure, not for generating energy.
This will show the concept, but as you can guess, when you punch a wooden block almost all of the energy is converted into sound and heat and then lost into the air.