If you gave us the model number we could check for you. You can't connect the soundbar to a 15 pin D sub connection.
If the monitor doesn't have an audio output you won't be able to get audio to the soundbar.
You could get an HDMI audio extractor to do that.