If the pins on the motherboard front panel header are not labeled, you can closely inspect the board. Some motherboards have labels identifying the pins to help orient the connector. This can guide you in correctly connecting the wires.