This would be very hardware dependent. Realistic if you limit yourself to VGA-compatible adapters, but not if you want to support the whole gamut of video hardware out there. But then again, if you were, you probably won't be writing for DOS in the first place.
For VGA, read up here. The registers are accessed via assembler's IN/OUT commands, read up on them.