That is not a feature that can be performed by InDesign.
You might be able to jury-rig a solution using a cloud service like Dropbox if you are clever but I don't think InDesign can reference the essential setup files it needs (like scripts) from such a server.
@Steve – at least with the Dropbox Service and OSX this is possible:
Just create a folder (with all your subfolders, if needed) for all your InDesign related scripts in your Dropbox. Make that main folder an alias. Just copy that alias to your Scripts Panel folder. Do it on one machine. Do it on the other. Every time you want to update a script or add/remove a script do it on Dropbox. The alias will reflect that instantly (if you are on a speedy online connection).
Every script in the alias-folder hierarchy is visible to InDesign.
That should also work in an Windows environment (I did not test that).
However: Backup frequently in case the Dropbox service will not be available (for whatever reason).
That's pretty cool, thanks! Got it working using the Windows command prompt ...
you are right. I can also see this.
It's a bug with CC 2015 on Mac OSX.