For general reference, this command will return a list of those apps sitting in the menu bar:
tell application "System Events" to ¬
get the name ¬
of every process ¬
whose class ¬
of menu bar 2 is menu bar
To retrieve an object reference for some arbitrary menu bar app’s menu icon:
tell application "System Events" to ¬
get menu bar item 1 of menu bar 2 of ¬
(some process ¬
whose class ¬
of menu bar 2 ¬
is menu bar)