On my HP Z 400 motherboard, the extra pin is a sense pin used to detect when a high TDP capable heatsink/fan combo is used, by grounding the fifth pin. This might be your pinout for that motherboard: https://pinoutguide.com/Motherboard/HP_Server_5_pin_Fan_conne_pinout.shtml