On the Product _info page the current products_id can be obtain with:
$_GET['products_id']

be aware that with attributes, if you need just the products_id you will want to use:
(int)$_GET['products_id']