I did not want to answer your question, but it was too long for the comments and that ends up serving as an answer. Besides, it's not the first time I see a question like that. So here's the answer:
Suppose you install a tool to avoid copying certain directories. Then they go there, open the files one by one in the notepad, choose the "Save as ..." option and write to another folder. FAIL!
And if they can not write to another folder, just copy and paste everything into the email, FAIL again.
Or even if you protect your computer well, one of them might decide to take multiple pictures of the monitor using the cell phone and then, somewhere outside your company, reassemble the code.
The only way would be if there was no internet access and no Wi-Fi, no CD or pen-drive and you would have to search them to make sure they do not bring phones or cameras.
Furthermore, even if they do not copy or photograph the code, they can take some sheets of paper and pens and copy them manually. Another thing you would have to bar and control the input and output.
However, I doubt this will result in a productive work environment.
Oh, and nothing prevents them from taking a good look at the code, decorating it, learning how it works, and then putting your foot out of your company, writing down everything you remember to replicate your program then.
Anyway, what you want to do can not be done. If you are going to work with two other people, you should choose trusted professionals and not work with anyone. Contracts with judicial value serve this purpose as well.