You can not connect to modems to one line!
You need to connect a router to your existing cable modem, you can the connect PC's to that. By cable modem I assume you mean DSL? NOT ADSL?.
If you have ADSL then you can get a router and modem in one unit to do the job.