You find these things as properties of the VM if your vm is in the variable vmobject:
The Hostname for example you get from vmobject.runtime.host
The Datastore from vmobject.datastore
The Folder you get from vmobject.parent
I'm wondering if you had a look at the Library Workflows for Cloning a Virtual Machine (in the Workflow View under Library->Vcenter->Virtual MAchine Managment->Clone