Is V1 the voltage across R1 and V2 the voltage across R2? or are they independent other node voltages? The answer of the question depends on your reply.
Your question i very interesting and not a trivial one. It concerns the nonlinear sources in the SPICE. The answer is in using the nonlinear sources.
You have a resistance say R1 which is proportional to the voltage V1 between the nodes N1 and N2. The resistor R1 itself is connected between Nodes N3 and N4.
The relation is R1= a V1, Applying ohms law on the resistance R1, then V= I R1= a I V1, So, from this equation the voltage across R1 is proportional to ITS current I and the oltave V1. According to spice syntax one can substitute the current I by a SENSE VOLTAGE SOURCE VSENSE BETWEEN NODES 5 AND 6 in series with the resistance R1. Then the voltage source repressing the resistance R1 can be expressed by V = a *I(VSENSE)* V1,
This voltage dependent voltage source with two degrees of freedoms can be represented in SPICE according to the syntax:
EXXXXXX N3 N4 POLY2 N1 N2 N5 N6 0 0 0 O a
Where the polynomial coefficient are all zeros except p4=a = 10 in your example.
For more syntax of the SPICE you can consult any text book on SPICE as WALTER BANZHAF, computer aided analysis using SPICE.
voltage and current sources which are controlled by a generic mathematical function of one or more voltages/currents available in a circuit can be defined as "B" (which I suppose stands for "behavioral") components in Spice. Here some examples:
B1 0 1 I=cos(v(1))+sin(v(2))
B1 0 1 V=ln(cos(log(v(1,2)^2)))-v(3)^4+v(2)^v(1)
B1 3 4 I=17
B1 3 4 V=exp(pi^i(vdd))...
please refer to Berkley's Spice online documentation for further details.