From within a controller you would use:
$em = $this->getDoctrine()->getManager();
$tableName = $em->getClassMetadata('StoreBundle:User')->getTableName();
Note that the getClassMetadata method returns a bunch of interesting info about the entity.