Do you mean you just want to know when the editor widget is opened to an existing item? If so, you can listen to the state change and then get the values of the item, etc. Not sure if this is what you are trying to do, but sample code below if so.
editor.viewModel.watch('state', (state) => {
if (state === 'editing-attributes') {
const currentValues =
editor.viewModel.featureFormViewModel.getValues();
}
});