I doubt that fine would be legal. The most I’ve seen is just a standard requirement for a license/permit (i.e. legal ownership), and maybe restricting open/concealed-carry in the neighborhood (but outside the house. Inside your house is out of the HOA’s grasp, though.)