if you are connecting both computer directly to the modem, one via network cable and one via USB, the answer is you can only use one or the other but NOT both. the other reason is that your ISP will only assign one IP address to your modem connection.
you will have to invest into a router which is also more secure than connecting directly to the modem