Figuring out pin configuration for a small SMD transistor
You can use a multimeter to check the transistor junctions.

Put it in diode testing mode and verify each of the transistors using the pinout on the datasheet as a guide. This way you will be able to determine the correct packaging.