If someone attempts to sign into your Apple ID, Apple will alert you by displaying a message on any devices signed into that Apple ID. You may also get an email with details of any unrecognized login attempts.
To check devices that are signed into your account follow the instructions here.