You might investigate ClamAV or ClamWin. They are open source virus scanners, ClamWin is based on ClamAV. You should be able to modify one of these (if someone hasn't already) to do what you want.
On the other end, you might consider simply dropping the streamed files into a directory and letting a scanner monitor that particular directory.