How to make sure a script is not shared?

I have multiple cubes with the same script. How do I know they all have a copy of the same script or all use the same script?

You know because it's the usual behaviour: As soon as you attach a script to a game object, it's a copy. Just make sure to not use static variables if you want the script to be independent.