Drumming (hammering) noises on the exterior of the building are usually caused by woodpeckers.
The woodpecker page has information about damage prevention and control measures. And the Cornell Lab of Ornithology has information about types of woodpecker damage specific to siding, with photos and more information on control measures.