This is based solely on your computer and the Headset you're using. If it's a standard 3.5mm jack then you just plug it in and as long as you have the desktop app setup to use the default Microphone and Speaker under the
Settings -> Sound page, then it should just work. If it's not set to default, then plug it in and open this page and change the options to your headset.
If it's a Bluetooth headset, then you'll need to pair it to your computer and then it should show up in the options on the Sound page as well.