That is controlled by which SATA port you connect it to on the motherboard.
SATA I, SATA II, SATA III.
You don't "set it". There are no 'jumpers'.
However...the throughput of a SATA II (3GB/s) connection is more than the HDD can provide.
SATA III (6GB/s) will make zero difference.