From wp-admin i.e from Dashboard
Media -> Library
Change the view option to List view instead of Grid view
Hover mouse on the edit button of the image, we can notice the post ID at the bottom corner from the edit URL.
Else we can click on the edit button, in the URL bar the post attribute for the image id is assigned as “post=” and the number is the image id.