There is a HttpRequest.Headers Property that returns a dictionary of the header values which you can use to get the value of a specific header by key.
In your case, something like req.Headers["If-Modified-Since"].ToString()
should return the value of header as a string if present, or an empty string if not.