How to convert URL aliases back to node ID
You can use drupal_get_normal_path function. 


  Return value
  
  The internal path represented by the alias, or the original alias if
  no internal path was found.