Answer
4 times as much. 9 times as much.
Work Step by Step
The amount of work done on the hammer head, and the amount it does on the nail, is the change in kinetic energy. Kinetic energy scales as the square of the speed, so if the speed is doubled, KE is multiplied by $2^{2} = 4$.
The amount of stopping force multiplied by the distance is the KE, so for the same friction force on the nail, with 4 times the initial KE for the hammer, the stopping distance goes up by a factor of 4.
An identical argument shows that for a tripled hammer speed, the nail is driven 9 times farther.
This is discussed on pages 114-115.