A joint NSW and Victoria police operation has resulted in the arrest of 27 people, and the seizure of firearms across the state borders.