it's not possible or effective. the only effective action to be done to keep them out of the hands of those that shouldn't have them is to incarcerate them. if they can't be trusted with a weapon, they can't be trusted in public
Or, responsible people could understand that they have the primary responsibility to provide for their own safety and act accordingly by arming themselves.