Simple way to detect if cursor is on a symbol?

Is there a way to detect if the cursor is on something that a given LSP recognizes as a symbol (vs. whitespace/punctuation, keyword, etc…)?