This can be done in the Device Manager. Press Windows + X on your keyboard, then click Device Manager. Expand the Sound, Video and Game Controllers section by clicking on the arrow icon in front of it. Right-click on the Realtek audio device and select Disable.