The D5 draws a current of 2A at 12V, so you'd have to see what your motherboard fan headers can safely put out. I believe a typical value is probably more like 1A, so it's probably safer to use a 12V molex.
Either way, I would just stick it on 12V just so it has constant voltage, instead of changing with the fan headers.