Uniquely identifying sv class instance from whose member function a dpi call was made

In reply to Aman551:

Class instances do not have scopes, only a handle which is meaningless outside SystemVerilog. You could create an array of class handles which have a unique index that you could pass through as an argument to the DPI call.