Get prefab through script

Is there a way to get the prefab from a editor script, so I can change some values on it?

Without having the prefabs as a component:

Or
Having the prefabs as a component: