I looked into it -- what exists in newer versions (via "guestfish -i") isn't really built-in as such, but rather calls virt-inspector. There is no C implementation presently, and you would need to rewrite the (fairly complex) Perl code in C to get that functionality independent of it.