No, there's nothing like this available in the GlowScript environment. As for doing something like this in your own program, a severe problems is that, for security reasons, it is not in general possible to write data to a file from a JavaScript program, which is what VPython compiles to. GlowScript does have a read_local_file() function:
But there is no write_local_file() function, because this is not permitted in JavaScript. You don't want a web page to overwrite your hard drive while you're reading the page.
The only thing I can think of is this: If you know of an environment where you can do what you want, and you can run your own server, you could keep your program in a private folder, use "Share or export this program" to get the compiled version, and paste that into a web page that is served by your server and which tracks visitations to that web page.
Bruce