Drupal API to check a particular user is logged-in, or not
No, there is no function like is_user_login($uid), but you can see how the core block "Who's online" is created (source).
Drupal has a "sessions" table, where all current sessions are stored.