It’s been asked for before as far back as OH 1.x and it comes up periodically since then. No one has volunteered to implement something like this so I surmise it’s not something easy to implement.
Ultimately the event bus does not preserve and has no knowledge of where an event comes from, just that the event occurred.
In the mean time see Design Pattern: Manual Trigger Detection for approaches to determine where a command or change comes from. The proxy Item approach is the most generic and most relaible.