Hi,
Download this project http://vijava.sourceforge.net/. This has lot of samples for you play with.
For exact answer to the original question the VirtualMachine object has a call get_config(). This gives the Virtualmachine Configuration information.
Thanks,
./Siva.