Same question on reddit a while ago
As suggested there, I recommend to use a multimeter to identify the power socket pins. Roughly half of them should be ground. Most or all of them should correspond and be connected to the SATA power connector pins on the other side.
TIL my thesis could have been easier if Typst would have been available years earlier.