Do you mean the alerting acting defensively about fireworks, or the lightning and thunder?
We can certainly tell him to not bark at the fireworks. The reaction to the thunder and lightning? No, that's far too deep and primal in him. We have always ignored his reactions and acted like everything was normal. Have not tried giving him treats during it though.
Funny thing is, I think his first year or more he did not have trouble with thunder/lightning. It got worse as he matured.