Yes this is possible, and I have used it in some places to control a KVM over some distance whena KVM Over IP was not practical.
It wasn't cheap though.
There are two different sort of routes you can go down.
KVM Over IP Ethernet Extender
This sort of device allows you to plug your ports in to your network and then usually either install client software on a machine to control it, or go to a webpage and use a Java/similar client to view the machine. For servers, this is an acceptable solution. For media centres/gaming, this may be laggy.
The other solution is a Local and Remote KVM extender.
This basically does the same thing, only, the box acts as a client and usually results in a better/faster experience - you plug your keyboard, monitor and mouse in to it and it acts as the client - no other local hardware required. Certainly the better solution.
Please note, I just Googled the name of what you need and provided the first link to give you an example, I haven't shopped around in this area for about 3/4 years and I do not really endorse/recommend the products I linked to - they are just for reference only of the sort of product you need to get. (+ shopping recommendations are against site policy!)