I don't know exactly how it's done but my ASUS Vivobook uses my R5-3500U's Vega IGP for almost all situations. It has a GTX 1050 discrete GPU but I only use that for things like video encoding. I don't game on my craptop but I have to imagine that if I did, it would use the GTX 1050, not the Vega IGP because otherwise there would be no point in having the GTX 1050 in the first place.
I would research mobile GPUs if I were you because I think that's where you'll find your answer because multiple GPUs is a lot more common in craptops than in desktops and it's always an APU with a separate discrete card like in my Vivobook. There has to be a way the computer chooses which GPU to use.