Many hardware stores sell spray on woodpecker repellents, but the hitch is you have to be very careful what you use, because, apparently, all species of woodpecker are protected in N. America. Also, I'd imagine certain products might harm/annoy the bees as well. You might try one of those fake owls, that can be mounted on rooftops to scare away pesky birds.