This would normally be done via hdparm (hdparm.conf settings-file). But having the system directly on the drive, makes hdparm ignore it for spindown, IIRC.
So, best solution would be to have the system on USB, NAND or whatever and only using the drive for storage. IF, spindown is mandatory for you, that is. ;-)