You will need to buy a sound card that has a toslink port on it. However you do have an HDMI port so you should be able to get digital audio that way if that is the goal.
Thanks for the answer but I need optical output because that is the only option on my home theater system. My PC doesnt have a PCI Express 16X slot. Only PCI Express 1X.