It's possible, depending on your OS. Doing it without an OS is on my list of pending projects, then I may work out how to do it in Windows. I really would like to create a cross platform graphics primitives library
If you are willing to call DirectX or OpenGL routines, they are worth looking into. I certainly will at some stage. It all depends what your requirements are. So far I only know about video modes listed in Ralf Brown's Interrupt List, which is too early for resolutions that high, so I can't help with how to set resolutions that high, and I don't know Windows or Linux system calls as get distracted too easily from all my projects