To do that, you need to get into CTI.. you have to learn either TAPI or JTAPI, monitor your phones, do the number -> name lookup, then push some information to the phone screen. It works well but CTI isn't as easy to get into as a simple phone service.