You may want to start with this
overview.
Your specific application is rather easy, so you may be able to even use the parallel port to control the relays, but that depends on the type of relay, current source/sink requirements, voltage requirements, etc.