One way is to look at the datasheet for the transistor.
Another way is to use a multimeter on the ohms range or diode check range to measure the base-emitter and base-collector forward resistance/voltage. The base-emitter junction will likely have a higher voltage drop (or resistance) than the base-collector junction.
Too find the base, simply connect one probe of the meter to one lead one the transistor. Then use the other probe to check both other leads.
- If both show other than open, you have found the base on your first try. The readings you got were for the base-emitter and base-collector (figure them out as above)
- If both show open, then you also found the base with your first try, just with the wrong probe. Use the other probe on the first pin and you should see readings for both other pins.
- If only one shows a reading, that is the base. Leave that connected to the second probe and use the first probe to get readings on the other 2 leads.
- If something else happens, you either haven't followed the instructions, or you have something other than a bipolar transistor.