There are couple of ‘virsh’ commands which can be used to get some basic information about the hypervisor which are in use/connected..
I will directly show the command output to get that information..
[root@humbles-lap ~]#virsh nodeinfo
CPU model: x86_64
CPU(s): 4
CPU frequency: 1599 MHz
CPU socket(s): 1
Core(s) per socket: 2
Thread(s) per core: 2
NUMA cell(s): 1
Memory size: 3909832 kB
[root@humbles-lap ~]#virsh capabilities
/usr/bin/qemu
/usr/bin/qemu-kvm
/usr/bin/qemu-system-x86_64
/usr/bin/qemu-kvm
/usr/bin/qemu-system-arm
/usr/bin/qemu-system-mips
/usr/bin/qemu-system-mipsel
/usr/bin/qemu-system-sparc
/usr/bin/qemu-system-ppc
The above commands can be used get the mentioned information..
virsh capabilties got mainly 2 sections.. 1. Host and 2. Guest part as highlighted above.
Recently the libvirt API behind this has been improved a lot for fetching above information..