In a 3 way switch, the first switch that gets the power from the main panel is the master switch. You need to take off the both the switches and check with a volt detector which one has a hot wire, that’s the master. Only one should have a hot cable if all the switches in the circuit are taken off and unwired.