It's certainly possible, but it might require some custom processing. Also, you'll have to be careful that both systems don't try to update the file at once. I'm not sure how well CIFS handles file locking, so that might be an issue.
You might want to look at free distributed queuing systems such as TORQUE, Open Grid Engine, or SLURM. They're not quite designed for your use case, but they could be used. I think most big render farms use DrQueue, so that one might be worth checking out too, but I have no personal experience with it.