Get current post featured image ID

Sounds like you’re looking for get_post_thumbnail_id():

$featuredID = get_post_thumbnail_id();

It returns null if there’s not a featured image, so you may want to add a check for that.