A high-end glass optical Toslink cable and DAC is well worth it if you have the matched quality build high-end audio equipment to pair with it.
In your case, inserting one into a mass produced cheap build sound bar and PC would be an outlay with a minimal to highly likely nil upgrade in audio performance. Ditto for upgrading your PC sound card.