Do you mean identifying the search keywords that brought users to your site? This is done by parsing the referrer URL.
string referrer = Request.UrlReferrer.ToString();
Most of them are pretty simple, but there are different templates for different search engines.
source
to share