Hi,
If it's a Apply Earpods that won't work but if it's a headset made for PC and other devices it should work if the laptop has a combo 3.5mm port as well.
Here's also a sample of a splitter that you can use.
http
/www.amazon.in/GadgetsAccessories-Female-Headphone-Earphone-Splitter/dp/B00SP9ERDO