in my case i use nomachine, and nomachine can utilize the GPU for hardware encoding, however it cannot stretch to 2 monitor afaik.
i have an iGPU passthrough to a Linux vm, and two nvidia passthrough to two windows 11, all with nomachine and able to utilize the H264 hardware encoding with the gpu.