What inverter is it?
It can be done, however without knowing what inverter you have, nobody can really tell you.
Provided the inverter can output the required information via RS485 (aka Modbus), and you have an adapter to connect RS485 to your computer, it is doable.