How to find world coordinates within an object?

I was wondering is there already a way to find coordinates in world space that an object occupies (such as a cube for example) ?

Yes! It depends on a few things, but you can use either collider.bounds, mesh.bounds or renderer.bounds depending on your requirements. The ‘Bounds’ object gives you all sorts of useful information about the world space that an object occupies!