You could use a simple script like this in DEVONthink and run it as you need to…
tell application id "DNtp"
try
set ws to (current workspace)
display notification "is the active workspace." with title ws
on error
display notification "No workspace in use."
end try
end tell
This would also be seen in the Notification Center…