Receiving values from other application to change surface / shape colors

I am new to Blender. I would like to build a system of bricks that receive color or surface color changes via udp or a similar method. Is this possible? If so, are there any good places (articles, manuals, print/pdf books) to check first? Even a list or outline of the disparate elements / dependencies would be hugely appreciated!

Thanks!