What you need is S/PDIF input for your computer. Most high-end computer sound cards these days support S/PDIF, but virtually no laptops have it. External USB adapters can work, though; cheap ones cost $50, and the prices go up arbitrarily. A long list of such devices can be found at usb-audio.com.