No, you can’t drive to the DMV without a license. You need to pick somebody from your family, friends or neighbors to take you to the DMV and let you use his car for the test.
For rental cars, you can go with a person from your acquaintances who has a valid driving license, or you can get a person from the rental to drive you to the test spot.