Hi,
In your case, you can hear Discord but there's no sound from YouTube, or vice versa?
Does the problem only occur with Discord?
Search for msinfo32.exe in the search bar, take a screenshot, and post it here so we can see the correct laptop model or desktop configuration.
Thanks